package com.woniu.service.impl;

import com.woniu.entity.GoodsDetail;
import com.woniu.mapper.DetailMapper;
import com.woniu.service.DetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class DetailServiceImpl implements DetailService {
    @Resource
    private DetailMapper detailMapper;
    @Override
    public List<GoodsDetail> findAll() {
        return detailMapper.findAll();
    }

    @Override
    public GoodsDetail findById(Long id) {
        return detailMapper.findById(id);
    }

    @Override
    public List<GoodsDetail> findBySid(Long id) {
        return detailMapper.findBySid(id);
    }

    @Override
    public Integer update(GoodsDetail goodsDetail) {
        return detailMapper.update(goodsDetail);
    }

    @Override
    public Integer add(GoodsDetail goodsDetail) {
        return detailMapper.add(goodsDetail);
    }

    @Override
    public Integer delById(Long id) {
        return detailMapper.delById(id);
    }
}
